package com.ordertracker.listener;

import com.ordertracker.core.PersistentEventRegister;
import org.hibernate.event.spi.PreDeleteEventListener;
import org.hibernate.event.spi.PreInsertEventListener;
import org.hibernate.event.spi.PreLoadEventListener;
import org.hibernate.event.spi.PreUpdateEventListener;

import javax.persistence.Entity;

/**
 * Description of class.
 * Created 2/26/13 1:53 PM
 *
 * @author andrey.rodin@playtech.com
 */

public interface EntityConstraintSupport extends PreInsertEventListener, PreLoadEventListener,
        PreUpdateEventListener, PreDeleteEventListener {

    void setPersistentEventRegister(PersistentEventRegister eventRegister);
    PersistentEventRegister getPersistentEventRegister();
    void registerListener();
}
